package com.itboye.allshengmedical.sci.packet.req;

public class DetectLightIntensitTempReqPacket extends BaseReqPacket {
	public DetectLightIntensitTempReqPacket() {
		this.setStart(new byte[] { (byte) 0x5A, (byte) 0xA5 });

		this.setLen((byte) 0x04);
		this.setContent(new byte[] { (byte) 0x07, (byte) 0x00, (byte) 0x00,
				(byte) 0x00 });

		this.calCheckBit();

		this.setEnd(new byte[] { (byte) 0x3E, (byte) 0xE3 });
	}

	public void CtronlMode(int temp) {
		if (temp == 1) {
			this.setContent(1, (byte) (0x01));
		} else if (temp == 2) {
			this.setContent(1, (byte) (0x02));
		} else if (temp == 3) {
			this.setContent(1, (byte) (0x03));
		} else if (temp == 4) {
			this.setContent(1, (byte) (0x04));
		}
	}

}
